package com.gitee.elf.core.entity.event

import com.gitee.elf.api.event.ElfEntityCreateEvent
import com.gitee.elf.core.entity.event.EntityEventManager.invokeScript
import taboolib.common.platform.event.SubscribeEvent

object EntityCreateEvent : EntityEvent {

    override val id: String
        get() = "on create"

    @SubscribeEvent
    fun e(e: ElfEntityCreateEvent.Post) {
        e.instance.invokeScript(this)
    }

}